package com.java.demo.dao;

import com.java.demo.model.User;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Repository;

@Repository
public class UserRepository2 {
    @Bean("user")
    public User fun(){
        User user = new User();
        user.setId(1);
        user.setName("王五");
        return user;
    }
}
